import * as api from '@/services/api';

export default {
  namespace: 'user',
  state: {
    userInfo: {},
  },
  effects: {
    // @ts-ignore
    *getUserInfo(params: any, {call, put}) {
      const data = yield call(api.getUserInfo, params);
      yield put({
        type: 'userInfo',
        payload: data
      })
    }
  },
  reducers: {
    userInfo(state: any, payload: any) {
    }
  }
}
